#include "client.h"

#include <QTcpSocket>

Client::Client(QTcpSocket *socket, QObject *parent) : QObject(parent)
{
    p_socket = socket;
    connect(p_socket, SIGNAL(disconnected()), this, SLOT(emitDisconnected()));
}


void Client::emitDisconnected(){
    Q_EMIT disconnected();
}



void Client::close()
{
    p_socket->close();
}
